import axios from '@/static/js/axios'
import message from '@/static/js/message';

export default{
    //获取数据字典类型
    getDataType: () => {
        return axios.get('/sys/Config/types')
        .then(res=> {
            let { code, msg, data } = res;
            if(code != 1){
                return message.error(msg);
            }else{
                return data
            }
        })
    },
}